package com.ruoyi.activiti.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.dto.ActApprovalDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangenhao
 * @interfaceName RemoteActivitiService
 * @description
 * @date 2024-10-31 下午10:24
 */
@FeignClient(contextId = "remoteActivitiService", value = ServiceNameConstants.ACTIVITI_SERVICE)
public interface RemoteActivitiService {

    @PostMapping("/approval/add")
    public AjaxResult addApproval(@RequestBody ActApprovalDTO actApprovalDTO);

    @PostMapping("/approval/saleHandelApproval")
    public AjaxResult saleHandelApproval(@RequestBody String processInstanceId);
}
